<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1" errorPage="erro.jsp"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>jProducaoOS - RN Automacao Comercial</title>
</head>
<body>
<p>Ola, <c:out value="${sessionScope.funcionario.nome}" /></p>

<h2 align="center">Cadastramento de Ordem de Servicos</h2>

<form action="Controle" method="post">
<table align="center" border="3" cellPadding="2" cellSpacing="3"
	width="30%" height="25">
	<tr>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<b>NumeroOS</b></td>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<input
			type="text" name="numeroOS" size="16"><font size="1">&nbsp;</font></td>
	</tr>
	<tr>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<b>Data
		Abertura</b></td>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<input
			type="text" name="dataAbertura" size="16"><font size="1">&nbsp;</font></td>
		<td align="center" class="td_cinza" width="50%">dd/MM/aaaa</td>
	</tr>
	<tr>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<b>Data
		Execucao</b></td>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<input
			type="text" name="dataExecucao" size="16"><font size="1">&nbsp;</font></td>
		<td align="center" class="td_cinza" width="50%">dd/MM/aaaa</td>
	</tr>
	<tr>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<b>Valor</b></td>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<input
			type="text" name="valor" size="16"><font size="1">&nbsp;</font></td>
		<td align="center" class="td_cinza" width="50%">0000000.00</td>
	</tr>
		<tr>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<b>Atendente</b></td>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;
		<select name="funcionario">
		<option value="0">&nbsp;</option>
		<c:forEach var="func" items="${requestScope.funcionarios}">
		<option value='<c:out value="${func.codigo}"/>'><c:out value="${func.nome}"/></option>		
		</c:forEach>
		</select>
		<font size="1">&nbsp;</font></td>
	</tr>
</table>
<input type="hidden" name="controle" value="cadastroAtendimento" />
<table align="center" border="0" cellPadding="2" cellSpacing="3"
	width="30%" height="25">

	<tr>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<input
			type="submit" name="enviar" value="Enviar"></td>
		<td align="center" class="td_cinza" width="50%">&nbsp;&nbsp;<input
			type="button" name="sair" value="Sair" onclick="window.close()"></td>
	</tr>

</table>
</form>

</body>
</html>
